package org.mifos.boss.business;

import org.apache.log4j.Logger;
import org.mifos.boss.application.model.UserCredentials;
import org.mifos.boss.webservice.RESTclient.RESTClientController;

public class BaseBossBusiness {
	protected static Logger logger = Logger.getLogger(BaseBossBusiness.class);
	
	
	

   //if user is a valid user, enable them for rest calls
   public RESTClientController prepareUserforRESTcall(UserCredentials user){
	   RESTClientController mifosClient =null;
	  
	   
	   if(user != null){
		   
		   mifosClient = new RESTClientController(user.getJ_username(), user.getJ_password());
	   }
		   
	   return mifosClient; //(rc!=null)? 1:0;
	   
   }
}
